; Terrain Type Check

Terrain_Type_Check:

	CMP 	R6, 22									; Number of pointers to check
	ADDLS 	PC, PC, R6, LSL #2 						; Pointer used depends on type of terrain the unit is on
	
	B 		No_Terrain_Rank - OL_7_Offset
	B 		No_Terrain_Rank - OL_7_Offset 			;  
	B 		No_Terrain_Rank - OL_7_Offset 	 		; Plain
	B 		No_Terrain_Rank - OL_7_Offset			; River
	B 		Mountaineer_Rank - OL_7_Offset			; Mountain
	B 		Ranger_Rank	- OL_7_Offset				; Woods
	B 		Road_Rage_Rank - OL_7_Offset			; Road
	B 		Urban_Fighter_Rank - OL_7_Offset		; City
	B 		Seamanship_Rank - OL_7_Offset			; Sea	
	B 		No_Terrain_Rank - OL_7_Offset 			; HQ
	B 		No_Terrain_Rank - OL_7_Offset 			;
	B 		No_Terrain_Rank - OL_7_Offset 			; Airport
	B 		No_Terrain_Rank - OL_7_Offset 			; Port
	B 		No_Terrain_Rank - OL_7_Offset 			; Bridge
	B 		No_Terrain_Rank - OL_7_Offset	 		; Shoal
	B 		No_Terrain_Rank - OL_7_Offset 			; Base
	B 		No_Terrain_Rank - OL_7_Offset 			; Pipe
	B 		No_Terrain_Rank - OL_7_Offset 			; Seam
	B 		No_Terrain_Rank - OL_7_Offset 			; Silo
	B 		No_Terrain_Rank - OL_7_Offset 			; No Silo
	B 		No_Terrain_Rank - OL_7_Offset 			; Reef
	B 		No_Terrain_Rank - OL_7_Offset 			; Lab
	B 		No_Terrain_Rank - OL_7_Offset 			;
	B 		No_Terrain_Rank - OL_7_Offset 			; Tower

;-------------------------------------------------------------------------------